<#assign hasId=false/>
<#list columnList as column>
    <#if column.form>
        <#if column.attrName == 'id'>
            <#assign hasId=true/>
        <#else>
        </#if>
    </#if>
</#list>
package ${package}.dto.${classname}.req;

import ${package}.config.interceptor.req.BaseReq;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDate;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
<#list imports as i>
import ${i!};
</#list>

/**
 * ${tableComment}更新参数
 *
 * @author ${author} ${email}
 * @since ${version} ${date}
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "${tableComment}")
public class ${ClassName}EditDto extends BaseReq {

<#if !hasId>
	/**
	 * 主键id
	 */
	@NotNull(message = "${classname}.id.notnull")
	private Long id;

</#if>
<#list columnList as column>
	<#if column.form>
	<#if column.columnComment!?length gt 0>
	/**
	 * ${column.columnComment}
	 */
	@Schema(description = "${column.columnComment}")
	</#if>
	<#if column.required>
	<#if column.attrType == 'String'>
	@NotBlank(message = "${classname}.${column.attrName}.notblank")
	<#elseif column.attrType == 'Long' || column.attrType == 'Integer' || column.attrType == 'BigDecimal'>
	@NotNull(message = "${classname}.${column.attrName}.notnull")
	</#if>
	</#if>
	private ${column.attrType} ${column.attrName};

    </#if>
</#list>

}